package com.ruben.study;

import cn.hutool.core.bean.BeanDesc;
import cn.hutool.core.collection.CollStreamUtil;
import cn.hutool.core.collection.ListUtil;

import java.util.Map;

/**
 * CollStreamUtil工具类例子
 *
 * @author <achao1441470436@gmail.com>
 * @since 2021/9/28 15:21
 */
public class CollStreamUtilDemo {
    public static void main(String[] args) {
        final Map<String, BeanDesc> stringBeanDescMap = CollStreamUtil.toIdentityMap(ListUtil.of(new BeanDesc(Class.class), new BeanDesc(Class.class)), BeanDesc::getName);
    }
}
